package com.corgi.mybatis.modules.mapper;

import com.corgi.mybatis.modules.domain.Attachment;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @title: AttachmentMapper
 * @description:
 * @author: dengmiao
 * @create: 2019-10-26 12:29
 **/
@Repository
public interface AttachmentMapper {

    /**
     * 保存
     * @param attachment
     */
    void save(Attachment attachment);

    /**
     * 列表
     * @return
     */
    List<Attachment> selectList();

    /**
     * 主键查询
     * @param id
     * @return
     */
    Attachment selectById(Long id);
}
